package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.pojo.Employee;
import com.itheima.result.R;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpSession;

/**
 * @Author: 斌
 * @DateTime: 2023年02月05日  20:38:10
 * @Description: com.itheima.service
 * @Version: 1.0
 */

public interface EmployeeService extends IService<Employee> {
    R login(Employee employee,HttpSession httpSession);

    R<String> logout(HttpSession httpSession);

    R tabs(Integer page,Integer pageSize,Employee employee);
    @Transactional
    R addEmp(Employee employee,HttpSession session);
    @Transactional
    R updateStatus(Employee employee,HttpSession session);

    R queryEmpById(Long id);
}
